package com.mdmedia.cms.dao;


import java.util.List;
import java.util.Map;

import com.mdmedia.common.dao.PageResults;

public interface IBaseDao <T extends Object> {

	public Boolean createObject(T obj)throws Exception;
	
	public Boolean deleteObject(String id)throws Exception;
	
	public Boolean deleteObject(T obj)throws Exception;
	
	public PageResults<T> queryDataList(String hql, String countHql,int pageNo, int pageSize, Object... values) throws Exception;
            
	public T queryObject(String id)throws Exception;
	
	public List<T> queryDataList(String select ,String hql)throws Exception;
	
}
